package com.loser.module.order.entity;

import com.loser.module.LogicDel;
import io.github.loserya.core.anno.MapperProxy;
import io.github.loserya.module.idgen.anno.IdType;
import io.github.loserya.module.idgen.hardcode.GEN;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@MapperProxy
public class Order extends LogicDel {

    @Id
    @IdType(GEN.AUTO)
    private Long orderId;

    private String orderNo;

    private Date orderTime;

    private Long userId;

    private int type;

}
